﻿using SMBLibrary;
using System;
using System.Net;

using SMBLibrary.Server;

namespace App2Wpf.ViewModels
{
    class sambaVM
    {
        //// 创建一个SMB服务器实例
        //SMBServer server = new SMBServer();

        //// 设置服务器的IP地址和端口号
        //IPAddress ipAddress = IPAddress.Parse("192.168.247.1");
        //int port = 445;
        //server.Start(ipAddress, port);

        //// 注册一个共享文件夹
        //string shareName = "MyShare";
        //string sharePath = @"D:\SHARE";
        //server.RegisterShare(new DiskShare(shareName, sharePath));

        //// 注册一个用户账户
        //string username = "user";
        //string password = "password";
        //server.RegisterUser(new UserAccount(username, password));

        //// 注册一个用户组
        //string groupName = "group";
        //server.RegisterGroup(new GroupAccount(groupName));
    }
}
